diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-23 19:32:42 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-23 20:53:58 +0200 |
| commit | c51b5d9a5f217f8aa59c4bdcb04eb3c87f5129b3 (patch) | |
| tree | a4ce7f77c2b1742119eebf818d9b97db7ed1e310 /src/pages/article/[slug].tsx | |
| parent | 5ebd7c14f7303a0feb8ec1d902ecd0e287d929c3 (diff) | |
fix: ensure all topics/thematics have the base url
Diffstat (limited to 'src/pages/article/[slug].tsx')
| -rw-r--r-- | src/pages/article/[slug].tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index c72d48e..5e75ae7 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -81,7 +81,7 @@ const ArticlePage: NextPageWithLayout<ArticlePageProps> = ({ thematics: thematics && thematics.map((thematic) => ( - <Link key={thematic.id} href={`/thematique/${thematic.slug}`}> + <Link key={thematic.id} href={thematic.url}> {thematic.name} </Link> )), @@ -99,11 +99,7 @@ const ArticlePage: NextPageWithLayout<ArticlePageProps> = ({ label: footerMetaLabel, value: topics.map((topic) => { return ( - <ButtonLink - key={topic.id} - target={`/sujet/${topic.slug}`} - className={styles.btn} - > + <ButtonLink key={topic.id} target={topic.url} className={styles.btn}> {topic.logo && <ResponsiveImage {...topic.logo} />} {topic.name} </ButtonLink> ); |
